package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 出诊时间实体
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-6-24
 * Time: ����10:23
 * To change this template use File | Settings | File Templates.
 */
@Table(name = "dr_consult")
@Entity
public class DrConsult implements java.io.Serializable {
    private static final long serialVersionUID = 1728362226330344585L;
    private long id;
    private Long doctorId;
    private int weekIndex;
    private Integer am;
    private Integer pm;
    private Integer night;

    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 19, precision = 0)
    @Id
    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "doctor_id", nullable = true, insertable = true, updatable = true, length = 19, precision = 0)
    @Basic
    public Long getDoctorId() {
        return this.doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    @Column(name = "week_index", nullable = false, insertable = true, updatable = true, length = 10, precision = 0)
    @Basic
    public int getWeekIndex() {
        return this.weekIndex;
    }

    public void setWeekIndex(int weekIndex) {
        this.weekIndex = weekIndex;
    }

    @Column(name = "am", nullable = true, insertable = true, updatable = true, length = 10, precision = 0)
    @Basic
    public Integer getAm() {
        return this.am;
    }

    public void setAm(Integer am) {
        this.am = am;
    }

    @Column(name = "pm", nullable = true, insertable = true, updatable = true, length = 10, precision = 0)
    @Basic
    public Integer getPm() {
        return this.pm;
    }

    public void setPm(Integer pm) {
        this.pm = pm;
    }

    @Column(name = "night", nullable = true, insertable = true, updatable = true, length = 10, precision = 0)
    @Basic
    public Integer getNight() {
        return this.night;
    }

    public void setNight(Integer night) {
        this.night = night;
    }

}
